package top.kaoshanji.p2ch24a;

/**
 * 代码清单-p2ch24a-594页a：理解类加载器
 * author kaoshanji
 * ^_^
 * create time 2025/3/3 22:16
 */
public class ClassLoaderDemo {

    public static void main(String[] args) {

        ClassLoader cl = ClassLoaderDemo.class.getClassLoader();
        while (null != cl) {
            System.out.println(cl.getClass().getName());
            cl = cl.getParent();
        }
        System.out.println(String.class.getClassLoader());
    }

}
